<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center historicalFeedback_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub historicalFeedback_fd0_0'>
				<view class='flex flex-wrap align-center'>
					<person></person>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='historicalFeedback_fd0_0_c1_c0'>历史反馈</text>
				</view>
				<view class='flex flex-wrap align-center historicalFeedback_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#6A0002"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<template v-else>
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout historicalFeedback_flex_1">
				<view class='flex flex-wrap align-start historicalFeedback_fd1_0' v-for="(item,index) in select_type"
					:key="index">
					<image class='historicalFeedback_fd1_0_c0' mode="aspectFill" :src='item.head_img'></image>
					<view class='flex flex-direction flex-wrap align-stretch flex-sub historicalFeedback_fd1_0_c1'>
						<view class='flex flex-direction flex-wrap align-stretch historicalFeedback_fd1_0_c1_c0'>
							<!-- <image class='historicalFeedback_fd1_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"45.png"'></image> -->
							<view class='flex-sub'>
								<text class='historicalFeedback_fd1_0_c1_c0_c1_c0'>{{item.body}}</text>
							</view>
						</view>
						<view class='flex flex-wrap align-center'>
							<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1_c1_c0'
								v-for="(item1,index1) in item.thumb" :key="index1">
								<image class='historicalFeedback_fd1_0_c1_c1_c0_c0' mode="aspectFill" :src='item1' @click="previewImage(index1,item.thumb)"></image>
							</view>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1_c2'>
							<text class='historicalFeedback_fd1_0_c1_c2_c0'>反馈类型：</text>
							<text class='historicalFeedback_fd1_0_c1_c2_c0'>{{item.title}}</text>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1_c2'>
							<text class='historicalFeedback_fd1_0_c1_c2_c0'>反馈时间：</text>
							<text class='historicalFeedback_fd1_0_c1_c2_c0'>{{item.create_time}}</text>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1_c4' v-show="item.is_replay==1">
							<text class='historicalFeedback_fd1_0_c1_c4_c0'>平台回复：</text>
							<text class='historicalFeedback_fd1_0_c1_c4_c1'>{{item.replay}}</text>
						</view>
					</view>
				</view>
			</view>
		</template>
		<view class="noData" v-if="select_type.length == 0 && !isShow">
			<image src="/static/empty/no.png"></image>
		</view>
		

	</view>
</template>
<script>
	import back from "@/components/back/index.vue"
	import person from "@/components/person/index.vue"
	export default {
		components: {
			back,
			person
		},


		data() {
			return {
				select_type: [],
				isShow: true,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getlishifankui()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//反馈类型
			async getlishifankui() {
				let res = await this.$api.post(global.apiUrls.lishifankui, {
					page: 1
				})
				if (res.data.code != 1) {
					this.$message.info(res.data.msg)
					return
				}
				this.isShow = false;
				this.select_type = res.data.data.data
				console.log(this.select_type, 'this.select_type')
			},
			previewImage(index,url) { // index 索引 如果 需要复用方法 可以使用 类型来进行区分(val)
				uni.previewImage({
					current: index,     // 当前显示图片的索引值
					urls: url,    // 需要预览的图片列表，photoList要求必须是数组
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.historicalFeedback_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.historicalFeedback_fd0_0_c2 {
		width: 32rpx;
		height: 32rpx;
	}

	.historicalFeedback_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.historicalFeedback_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.historicalFeedback_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.historicalFeedback_flex_1 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.historicalFeedback_fd1_0_c1_c4_c1 {
		line-height: 46rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}

	.historicalFeedback_fd1_0_c1_c4_c0 {
		line-height: 46rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: var(--benbenFontColor4);
	}

	.historicalFeedback_fd1_0_c1_c4 {
		background: rgba(248, 248, 248, 1);
		padding: 24rpx 16rpx 24rpx 16rpx;
		margin: 16rpx 0rpx 0rpx 16rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
	}

	.historicalFeedback_fd1_0_c1_c2_c0 {
		line-height: 46rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.historicalFeedback_fd1_0_c1_c2 {
		margin: 0rpx 0rpx 16rpx 16rpx;
	}

	.historicalFeedback_fd1_0_c1_c1_c0_c0 {
		width: 180rpx;
		height: 180rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.historicalFeedback_fd1_0_c1_c1_c0 {
		margin: 12rpx 15rpx 12rpx 15rpx;
	}

	.historicalFeedback_fd1_0_c1_c0_c1_c0 {
		line-height: 46rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
		padding: 0rpx 32rpx 0rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c1_c0_c0 {
		width: 32rpx;
		height: 32rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		position: absolute;
		right: 0rpx;
		bottom: 6rpx;
	}

	.historicalFeedback_fd1_0_c1_c0 {
		position: relative;
		padding: 0rpx 0rpx 0rpx 16rpx;
	}

	.historicalFeedback_fd1_0_c1 {
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c0 {
		width: 72rpx;
		height: 72rpx;
		border-radius: 50rpx 50rpx 50rpx 50rpx;
	}

	.historicalFeedback_fd1_0 {
		border-bottom: 1px solid #eee;
		padding: 24rpx 0rpx 32rpx 0rpx;
	}
</style>